package com.sw.fastdev.global;

import android.app.Application;
import android.content.Context;
import android.os.Handler;

/**
 * Created by xifanoo on 2016/9/26.
 */

public class MyApplication extends Application {

    private static Context context;
    private static Handler mHandler;

    @Override
    public void onCreate() {
        super.onCreate();
        context = this;
        mHandler = new Handler();
    }

    public static Handler getMainHandler(){
        return mHandler;
    }

    public static Context getContext(){
        return context;
    }
}
